<?php if (count($categories) !== 0) : ?>
	<select name='c_<?php echo $parent_id;?>' id='c_<?php echo $parent_id;?>' onchange='changeCategories(this);'>
		<option value=''>Выберите...</option>
	<?php
	for ($i = 0; $i < count($categories); $i++) :
		?>
		<option value='<?php echo $categories[$i]['id'];?>'><?php echo $categories[$i]['name'];?></option>
		<?php
	endfor;
	?>
	</select>
<?php endif; ?>
